package cn.jishiyu11.xeqb.activity.personalCenterActivitys

import android.os.Bundle
import android.os.PersistableBundle
import android.support.v7.app.AppCompatActivity
import android.view.KeyEvent
import cn.jishiyu11.xeqb.R
import cn.jishiyu11.xeqb.base.BaseActivity
//import com.journeyapps.barcodescanner.CaptureManager
import com.umeng.analytics.MobclickAgent
import kotlinx.android.synthetic.main.act_qrcode_scan.*
import kotlinx.android.synthetic.main.fra_personalcenterfragment.*

/**
 * Created by jsy_zj on 2018-03-22.
 */
class QRCodeScanActivity:BaseActivity() {

//    private var captureManager:CaptureManager? = null//捕获器管理
//
//    override fun onCreate(savedInstanceState: Bundle?) {
//        super.onCreate(savedInstanceState)
//        setContentView(R.layout.act_qrcode_scan)
//        captureManager = CaptureManager(this,dbv)
//        captureManager?.initializeFromIntent(intent,savedInstanceState)
//        captureManager?.decode()
//
//    }
//
//    override fun onSaveInstanceState(outState: Bundle?, outPersistentState: PersistableBundle?) {
//        super.onSaveInstanceState(outState, outPersistentState)
//        captureManager?.onSaveInstanceState(outState)
//    }
//
//    override fun onPause() {
//        super.onPause()
//        captureManager?.onPause()
//    }
//
//    override fun onResume() {
//        super.onResume()
//        captureManager?.onResume()
//        MobclickAgent.onResume(this)
//    }
//
//    override fun onDestroy() {
//        super.onDestroy()
//        MobclickAgent.onPause(this)
//        captureManager?.onDestroy()
//    }
//
//    override fun onKeyDown(keyCode: Int, event: KeyEvent?): Boolean {
//        return dbv.onKeyDown(keyCode,event) || super.onKeyDown(keyCode, event)
//    }

    override fun findViewById() {

    }

    override fun initView() {
    }


}